package com.codecoord.spring.domain;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Component;

/**
 * Person
 *
 * @author tianxincoord@163.com
 * @since 2022/2/25
 */
@Component
public class Person {
	private String name = "person信息";
	/**
	 * 循环依赖
	 */
	@Autowired
	@Qualifier(value = "student")
	private Student student;

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Student getStudent() {
		return student;
	}

	public void setStudent(Student student) {
		this.student = student;
	}
}
